package com.etong.frame.directive.impl.database;

import com.etong.frame.directive.Directive.OutputFormat;
import com.etong.frame.directive.DirectiveConfig;
import com.etong.frame.directive.mybatis.DirectiveStatement;

/**
 * @ClassName : Statement
 * @Description : sql语句结构
 * @author : yuanjie
 * @date : 2016年4月8日 下午12:25:36
 * 
 */
public class Statement extends DirectiveStatement implements DirectiveConfig {
	private Integer tableOp;
	private String statementConfig;

	@Override
	public String getOuputName() {
		return this.getOutput_name();
	}

	@Override
	public Boolean isOutput() {
		return (null == getIs_output()) ? false : getIs_output();
	}

	@Override
	public Boolean isOutputNext() {
		return (null == getOutput_next()) ? false : getOutput_next();
	}

	@Override
	public Integer getOutputFormat() {
		return (null == getOutput_format()) ? OutputFormat.LIST
				: getOutput_format();
	}

	public Integer getTableOp() {
		return tableOp;
	}

	public void setTableOp(Integer tableOp) {
		this.tableOp = tableOp;
	}

	@Override
	public String getStatementConfig() {
		return this.statementConfig;
	}

	@Override
	public String getOutputChecker() {
		return this.getOutput_checker();
	}

}